package com.igogogo.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Mr.Chen
 * @since 2018-07-01
 */
public class Accounts extends Model<Accounts> {

    private static final long serialVersionUID = 1L;

    /**
     * 账号编号
     */
    @TableId(value = "aid", type = IdType.AUTO)
    private Integer aid;
    /**
     * 账号名称
     */
    private String aname;
    /**
     * 账号密码
     */
    private String apwd;


    public Integer getAid() {
        return aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    public String getAname() {
        return aname;
    }

    public void setAname(String aname) {
        this.aname = aname;
    }

    public String getApwd() {
        return apwd;
    }

    public void setApwd(String apwd) {
        this.apwd = apwd;
    }

    @Override
    protected Serializable pkVal() {
        return this.aid;
    }

    @Override
    public String toString() {
        return "Accounts{" +
        ", aid=" + aid +
        ", aname=" + aname +
        ", apwd=" + apwd +
        "}";
    }
}
